package TestsBuxfer;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;


/**
 * Created with IntelliJ IDEA.
 * User: C13T
 * Date: 12.07.13
 * Time: 19:17
 * To change this template use File | Settings | File Templates.
 */
public class AddTransaction {
    public WebDriver driver;
   // @Test

    public AddTransaction(WebDriver driver){
        this.driver = driver;
    }

    public AddTransaction TransPage(){
    WebElement TransPage = driver.findElement(By.id("tab-add_transaction"));
        TransPage.click();

    //WebDriverWait wait = new WebDriverWait(driver, 10);
    //wait.until(ExpectedConditions.elementToBeSelected(By.id("tab-add_transaction")));
        //Assert.assertEquals(TransPage.getAttribute("class"),"selected tabTitle");
        return new AddTransaction(driver);
    }
    public void CheckContent (){
    WebElement ClickRadioButt = driver.findElement(By.id("rd-inp-transType-4"));
    ClickRadioButt.click();
    String AddTrURL = driver.getCurrentUrl();
  //  Assert.assertEquals(AddTrURL,"https://www.buxfer.com/home#/transaction/add");
    }
}
